import { request } from '@ruifox-cms/utils'
//查询企业的用户
export function selectPageByEnterpriseIdUser(params) {
  return request({
    url: "/bidding/user/selectPageByEnterpriseId",
    method: "get",
    params,
  });
}
//查询企业的加入申请
export function selectJoinApplicationEnterprise(params) {
  return request({
    url: "/bidding/enterprise/selectJoinApplication",
    method: "get",
    params,
  });
}
//分页插叙企业用户信息
export function selectPageUser(params) {
  return request({
    url: "/bidding/user/selectPage",
    method: "get",
    params,
  });
}
//企业主账号转移
export function changeMainUser(data) {
  return request({
    url: "/bidding/user/changeMain",
    method: "post",
    data,
  });
}
//添加账户
export function insertSubAccountUser(data) {
  return request({
    url: "/bidding/user/insertSubAccount",
    method: "post",
    data,
  });
}
//审核用户加入申请
export function updateApplicationStateEnterprise(data) {
  return request({
    url: "/bidding/enterprise/updateApplicationState",
    method: "post",
    data,
  });
}
//解除企业绑定
export function unbindUser(data) {
  return request({
    url: "/bidding/user/unbind",
    method: "post",
    data,
  });
}